package com.huawei.hms.framework.network.restclient.hwhttp.dns.log;

import com.huawei.hms.framework.network.restclient.hwhttp.dns.dnresolver.DNResolver;
import com.huawei.hms.framework.network.restclient.hwhttp.dns.dnresolver.dnkeeper.DomainResult;

public abstract class DnsEventListener {
    public static final DnsEventListener NONE = new DnsEventListener() {
    };

    public interface Factory {
        DnsEventListener create(DNResolver dNResolver);
    }

    public static Factory factory(final DnsEventListener dnsEventListener) {
        return new Factory() {
            public DnsEventListener create(DNResolver dNResolver) {
                return dnsEventListener;
            }
        };
    }

    public void resolveStart() {
    }

    public void resolveEnd(DomainResult domainResult) {
    }

    public void resolveFail(Exception exception) {
    }
}
